<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>韵剪后端系统</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../static/css/font.css">
    <link rel="stylesheet" href="../static/css/xadmin.css">
    <script src="../static/js/jquery-1.12.4.min.js" charset="utf-8"></script>
    <script src="../static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../static/js/xadmin.js"></script>
    <script type="text/javascript" src="../static/js/jquery-1.12.4.min.js"></script>
</head>
<body>
<!-- 顶部开始 -->
<div class="container">
    <div class="logo"><a href="./index.html">韵剪云端</a></div>
    <div class="left_open">
        <i title="展开左侧栏" class="iconfont">&#xe699;</i>
    </div>

    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <!-- 显示用户名称 -->
            <a href="javascript:;"><span id="admin"></span>
                <span id="admin111" >ssssss</span></a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a onclick="x_admin_show('个人信息','http://www.baidu.com')">个人信息</a></dd>
                <dd><a onclick="x_admin_show('修改密码','./user/member-password.html',600,400)">修改密码</a></dd>
                <dd><a href="./login.html">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item to-index"><a href="#">欢迎你！</a></li>
    </ul>

</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <li>
                <a  onclick="toggleDisplay()" href="javascript:;">
                    <cite >MAIN</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a  _href="./Dashboard/dashboard0.html">
                            <img
                                    style="height: 2rem"
                                    class="image_5"
                                    src="../static/pic/数据_数据图.png"
                            />
                            <cite >数据</cite>

                        </a>
                    </li >
                </ul>
                <ul class="sub-menu">
                    <li>
                        <a _href="./Invoice/44.html">
                            <img class="image_5"
                                 style="height: 2rem"
                                 src="../static/pic/73-guozhai.png"
                            />
                            <cite>定价</cite>
                        </a>
                    </li>
                </ul>
                <ul class="sub-menu">
                    <li>
                        <a _href=" http://localhost:8082/">
                            <img class="image_5"
                                 style="height: 2rem"
                                 src="../static/pic/微信%20.png"
                            />
                            <cite>聊天</cite>
                        </a>
                    </li>
                </ul>
                <ul class="sub-menu" >
                    <li>
                        <a style="display: none" _href="./setting/setting0.html">
                            <img class="image_5"
                                 style="height: 2rem"
                                 src="../static/pic/icon_设置.png"
                            />
                            <cite>一般设置</cite>
                        </a>
                    </li>
                </ul>


            </li>
            <li>
                <a  href="javascript:;">
                    <cite >文件管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="./file/swiper0.html">
                            <img class="image_5"
                                 style="height: 2rem"
                                 src="../static/pic/文件管理.png"
                            />
                            <cite>轮播图管理</cite>
                        </a>
                    </li>

                </ul>
                <ul class="sub-menu">
                    <li>
                        <a _href="./file/index-bg0.html">
                            <img class="image_5"
                                 style="height: 2rem"
                                 src="../static/pic/文件管理.png"
                            />
                            <cite>背景图管理</cite>
                        </a>
                    </li>

                </ul>
                <ul class="sub-menu">
                    <li>
                        <a _href="./file/file.html">
                            <img class="image_5"
                                 style="height: 2rem"
                                 src="../static/pic/文件管理.png"
                            />
                            <cite>其他文件管理</cite>
                        </a>
                    </li>

                </ul>
            </li>
            <li>
                <a  href="javascript:;">
                    <cite >信息管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="./user/user-list.html">
                            <img class="image_5"
                                 style="height: 2rem"
                                 src="../static/pic/文件管理.png"
                            />
                            <cite>员工信息管理</cite>
                        </a>
                    </li>
                </ul>
                <ul class="sub-menu">
                    <li>
                        <a _href="./staff/staff0.html">
                            <img class="image_5"
                                 style="height: 2rem"
                                 src="../static/pic/文件管理.png"
                            />
                            <cite>客户信息管理</cite>
                        </a>
                    </li>
                </ul>

            </li>

        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home"><i class="layui-icon">&#xe68e;</i>我的桌面</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='./welcome.html' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
    </div>
</div>
<div class="page-content-bg"></div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
<!-- 底部开始 -->
<div class="footer">
    <div class="copyright">2023 韵剪b端管理系统</div>
</div>
<!-- 底部结束 -->
<script>
    var retrievedObject = JSON.parse(sessionStorage.getItem('employees'));
    var user=retrievedObject.name;
    var permission=retrievedObject.permission
    console.log(retrievedObject)
    console.log(user)
    console.log(permission)
    $(function () {
        sessionStorage.setItem("user", user);
        console.log(sessionStorage.getItem("user"));
        $('#admin111').text(sessionStorage.getItem("user"));
        // 检查用户是否有权限查看链接
        $('.sub-menu').on('click', 'a', function (event) {
            var href = $(this).attr('_href');
            event.preventDefault(); // 阻止链接的默认行为（即打开链接）
            console.log('你没有权限查看这个链接'); })

    })
    function toggleDisplay() {
        var link = document.querySelector('a[_href="./setting/setting0.html"]');
        if (link.style.display === 'none' && permission==="super") {
            link.style.display = 'block';
        } else {
            link.style.display = 'none';
        }
    }
</script>
</body>
</html>